<template>
	<view class="content">
		<!-- #ifndef MP-WEIXIN -->
		<!-- 顶部导航栏 -->
		<navBar :isIndex="true" title="登录"></navBar>
		<!-- #endif -->

		<!-- 登录组件 -->
		<login></login>

		<u-button
			class="ubtn"
			@click="goToIndex"
			shape="circle"
			:plain="true"
			color="#c1cbd7"
			type="primary"
			text="回到首页"
		></u-button>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		goToIndex() {
			uni.switchTab({
				url: '/pages/index/index'
			});
		}
	}
};
</script>

<style scoped lang="scss">
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	// #ifndef MP-WEIXIN
	.ubtn {
		margin-top: 1vh;
		width: 60vw;
	}
	// #endif
	// #ifdef MP-WEIXIN
	::v-deep .u-button {
		margin-top: 1vh;
		width: 60vw;
	}
	// #endif
}
</style>
